package com.ctv.my.customview.BaiajCustomView.activities;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Toast;

import com.ctv.my.customview.BaiajCustomView.View.ArcMenuView;
import com.ctv.my.customview.R;

/**
 * Created by baiaj on 2017/9/4.
 */

public class ArcMenuAct extends AppCompatActivity implements ArcMenuView.onSubItemClickListener {

    private ArcMenuView mArcMenu;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_arcmenu);
        mArcMenu = (ArcMenuView) findViewById(R.id.arcmenu_view);
        mArcMenu.setOnSubItemClickListener(this);
    }

    @Override
    public void onItemClick(View view, int position) {
        Toast.makeText(this,"position:"+position,Toast.LENGTH_SHORT).show();
    }
}
